package com.tulele.vtool.service;

import com.tulele.vtool.model.UserImpressionInfo;
import com.tulele.vtool.model.combinedEntity.CombinedUserCurImpressionInfo;

import java.util.List;

public interface IUserImpressionInfoService {

    /**
     * 查询用户当前印象
     * @param userId
     * @return
     */
    List<CombinedUserCurImpressionInfo> getUserCurImpression(Integer userId);

    /**
     * 添加用户印象
     * @param userId
     * @param impressionName
     * @return
     */
    int addUserImpression(Integer userId, String impressionName);

    /**
     * 添加用户印象(20200410,在用户新进来的时候，代替addUserImpression，不判断有没有，直接插)
     * @param userId
     * @return
     */
    int newUserImpression(Integer userId, String impressionName);

    /**
     * 点赞印象
     * @param impressionId
     * @return
     */
    int agreeUserImpression(Integer impressionId);

    /**
     * 修改用户印象
     * @param userImpressionInfo
     * @return
     */
    int modifyUserImpressionInfo(UserImpressionInfo userImpressionInfo);

    /**
     * 查询印象的点赞次数
     * @param impressionId
     * @return
     */
    Integer getUserImpressionAgreeCount(Integer impressionId);
}
